package net.wanho.service;

import net.wanho.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.vo.PageVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【role(角色表)】的数据库操作Service
* @createDate 2025-05-05 02:08:26
*/
public interface RoleService extends IService<Role> {

    List<Integer> getRoleIdListByUserId(Integer id);

    List<Role> getUserRoleListByUserId(Integer id);

    PageVo<Role> rolePage(Role role, Integer pageNum, Integer pageSize);

    void addRole(Role role);

    void updateRoleById(Role role);

    Role getRoleById(Integer id);

    List<Role> exportTable(Role role, Integer pageNum, Integer pageSize);
}
